package com.kkyy.mymusic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kkyy.mymusic.entity.MyMusicEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MyMusicDao extends BaseMapper<MyMusicEntity> {
    void insertOne(MyMusicEntity myMusicEntity);

    List<MyMusicEntity> myCollection(@Param("userId") Integer userId);

    void insertUsers(@Param("password") String password, @Param("username") String username);

    List<MyMusicEntity> songsbytype(@Param("type") Integer type, @Param("id") Integer id);

    // 删除前台用户
    void delete(Integer id);

    // 收藏删除
    void mymusicdelById(Integer id);
}